//
//  SDHomeViewController.swift
//  shudong
//
//  Created by luojie on 2018/3/4.
//  Copyright © 2018年 luojie. All rights reserved.
//

import UIKit

class SDHomeViewController: SDBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    func showFriends(){
      
      print("show friends")
        
        let vc = SDDemoViewController()
        
        vc.hidesBottomBarWhenPushed = true
        
        navigationController?.pushViewController(vc, animated: true)
        
    }

}

// 设置界面UI
extension SDHomeViewController{
    //重写父类方法
    override func setupUI() {
        super.setupUI()

        navItem.leftBarButtonItem = UIBarButtonItem(title: "friends", target: self, action: #selector(showFriends))
    }
    
    
}
